#include "stdafx.h"
#include "strategy.h"
#include "jugadores.h"

void SetData(Environment* env, const std::string& key, void* value)
{
	DICT* dict = (DICT*)env->userData;
	dict->insert(std::make_pair(key, value));
}

void* GetData(Environment* env, const std::string& key, void* _default)
{
	DICT* dict = (DICT*)env->userData;
	DICT::iterator it = dict->find(key);

	if(it == dict->end()) {
		return _default;
	}
	else {
		return it->second;
	}
}